<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="css/java.css">
    <style>
        <style type="text/css">
        body,
        html {
            height: 100%;
            position: relative;
        }

        html {
            font-size: 26.67vw;
        }

        body,
        p,
        dl,
        dd,
        ul,
        ol,
        li,
        div,
        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        form,
        input,
        table,
        tr,
        td {
            margin: 0;
            padding: 0;
        }

    </style>
</head>

<body>
    <header >
        <img class="house" src="img/house.jpg" alt="">
        <div class="inpu">
                <span id="dizhi_first">
                    <span id='shengshi'>西安</span><img style="background:#f4f8fb;" id="imgs" src="img/xiaojiantu.png" alt="">
                 </span>
            <input type="text" value="" placeholder="java">
            <span>×</span>
        </div>
        <button>搜索</button>
    </header>
    <section >
        <span id="phone_first"><span id='shu'>经验</span><img id="imgs" src="img/anniu.jpg" alt=""> </span>
        <span id="phone_first"><span id='shu'>学历</span><img id="imgs" src="img/anniu.jpg" alt=""> </span>
        <span id="phone_first"><span id='shu'>薪资</span><img id="imgs" src="img/anniu.jpg" alt=""> </span>
        <span id="phone_first"><span id='shu'>规模</span><img id="imgs" src="img/anniu.jpg" alt=""> </span>
        <span id="phone_first"><span id='shu'>融资</span><img id="imgs" src="img/anniu.jpg" alt=""> </span>
    </section>
    <div class="zhong">
        <div class="li">
            <img src="img/tu.jpg" alt="">
            <ul>
                <li>Java开发工程师</li>
                <li>软通动力</li>
                <li><span>西安</span>
                    <span>经验不限</span>
                    <span>本科</span>
                </li>
            </ul>
            <p>9K-18K</p>
        </div>
        <div class="li">
            <img src="img/tu-1.jpg" alt="">
            <ul>
                <li>Java</li>
                <li>中软国际</li>
                <li><span>西安</span>
                    <span>经验不限</span>
                    <span>本科</span>
                </li>
            </ul>
            <p>8K-16K</p>
        </div>
        <div class="li">
            <img src="img/tu-3.jpg" alt="">
            <ul>
                <li>Java开发工程师</li>
                <li>万盛达企业</li>
                <li><span>西安</span>
                    <span>1-3</span>
                    <span>本科</span>
                </li>
            </ul>
            <p>5K-10K</p>
        </div>
        <div class="li">
            <img src="img/tu-4.jpg" alt="">
            <ul>
                <li>Java高级工程师</li>
                <li>卓昭科技</li>
                <li><span>西安</span>
                    <span>1年以内</span>
                    <span>本科</span>
                </li>
            </ul>
            <p>9K-15K</p>
        </div>
        <div class="li">
            <img src="img/tu-5.jpg" alt="">
            <ul>
                <li>Java</li>
                <li>敖梦网络科技</li>
                <li><span>西安</span>
                    <span>经验不限</span>
                    <span>本科</span>
                </li>
            </ul>
            <p>9K-18K</p>
        </div>
        <div class="li">
            <img src="img/tu-6.jpg" alt="">
            <ul>
                <li>Java开发工程师</li>
                <li>混轮普斯</li>
                <li><span>西安</span>
                    <span>1-3年</span>
                    <span>本科</span>
                </li>
            </ul>
            <p>9K-18K</p>
        </div>
        <div class="li">
            <img src="img/tu-3.jpg" alt="">
            <ul>
                <li>Java开发工程师</li>
                <li>万盛达企业</li>
                <li><span>西安</span>
                    <span>1-3</span>
                    <span>本科</span>
                </li>
            </ul>
            <p>5K-10K</p>
        </div>
        <div class="li">
            <img src="img/tu-4.jpg" alt="">
            <ul>
                <li>Java高级工程师</li>
                <li>卓昭科技</li>
                <li><span>西安</span>
                    <span>1年以内</span>
                    <span>本科</span>
                </li>
            </ul>
            <p>9K-15K</p>
        </div>
        <div class="li">
            <img src="img/tu-5.jpg" alt="">
            <ul>
                <li>Java</li>
                <li>敖梦网络科技</li>
                <li><span>西安</span>
                    <span>经验不限</span>
                    <span>本科</span>
                </li>
            </ul>
            <p>9K-18K</p>
        </div>
        <div class="li">
            <img src="img/tu-6.jpg" alt="">
            <ul>
                <li>Java开发工程师</li>
                <li>混轮普斯</li>
                <li><span>西安</span>
                    <span>1-3年</span>
                    <span>本科</span>
                </li>
            </ul>
            <p>9K-18K</p>
        </div>
    </div>
    <div class="hua_out">
        <p><span id='cuo'>×</span> <span>选择城市</span></p>
        <ul class="left">
            <li>热门城市
            </li>
            <li>北京</li>
            <li>上海</li>
            <li>天津</li>
            <li>重庆</li>
            <li>黑龙江</li>
            <li>吉林</li>
            <li>辽宁</li>
            <li>内蒙古</li>
            <li>河北</li>
        </ul>
        <ul class="right">
                <li>全国</li>
                <li>北京</li>
                <li>上海</li>
                <li>广州</li>
                <li>深圳</li>
                <li>杭州</li>
                <li>天津</li>
                <li>西安</li>
                <li>苏州</li>
                <li>武汉</li>
                <li>厦门</li>
                <li>长沙</li>
                <li>成都</li>
            </ul>
    </div>
</body>

</html>
<script src="js/jquery-1.8.3.min.js"></script>
<script>
     window.onload = function(){
         fn()
     }
function fn(){
    $('header  .house').on('click',function(){
        location.href = "shouye.html";
    })
    $(window).on("scroll",function(){
        if(window.pageYOffset + window.innerHeight >= document.documentElement.scrollHeight){
           var i = parseInt(Math.random()*6+1);
          $('.zhong').append('<div class="li"> <img src="img/tu-'+i+'.jpg" alt=""><ul><li>Java开发工程师</li><li>混轮普斯</li><li><span>西安</span><span>1-3年</span><span>本科</span> </li></ul><p>9K-18K</p></div>');   
    }
    });
    $("#imgs").on("click",function(){
        var trem = '';
        $(".hua_out").css('display',"block");
        var  top1 = $('.hua_out').css('top');
        var sum = 10;
        top1 = parseFloat(top1);
        trem = setInterval(() => {
            top1 = top1 - sum;
            document.getElementsByClassName("hua_out")[0].style.top = top1+'px';
            if(top1<=0){
           $('.hua_out').css('top' ,'0px');
           $('.zhong'). css('display',"none"); 
           clearInterval(trem);
            }
        }, 10);
        $("#cuo").on("click",function(){
        var trem = '';
        $('.zhong'). css('display',"block");
        // $(".hua_out").css('display',"block");
        // var  top1 = $('.hua_out').css('top');
        var top1 = 0;
        var sum = 10;
        // top1 = parseFloat(top1);
        trem = setInterval(() => {
            top1 = top1 + sum;
            document.getElementsByClassName("hua_out")[0].style.top = top1+'px';
            if(top1>=571){
           $('.hua_out').css('top' ,'571px');
           $('.hua_out').css('display','none'); 
           clearInterval(trem);
            }
        }, 10);
})
})
}

</script>